﻿@{
    ViewBag.Title = "Index";
}
@using CNKI.TPI.Web.Admin.Model;
<script>
    function isExistDetial(code) {
        var urlaciton = '@Html.Raw(Url.Action("TopicIndex", "Topic"))' + '?topiccode=' + code;
        $.ajax({
            type: "POST",
            url:'@Html.Raw(Url.Action("IsTopicHasDetial", "Topic"))',
            data: { "topiccode": code },
            async: false,
            success: function (m) {
                if (m == "True") {
                    var w = window.open();
                    w.location = timestamp(urlaciton);
                }
                else {
                    messageAlert("该专题库没有配置栏目！");
                    return false;
                }
            },
            error: function (e)
            { }
        })
    }
</script>
<div class="wrap wrap-i detail-con clearfix mh">
    <div class="center-box posr">
        <h2 class="bbsolid bbsolidw2 mb10"><i class="blue-block"></i><span class="center-box-h-span2">专题列表</span></h2>
        <ul class="clarfix zt-list">
            @{
                if (ViewBag.TopicList != null)
                {
                    foreach (SYS_CMS_TOPIC item in ViewBag.TopicList)
                    {

                <li class="fl zt-list-li">
                    <a onclick="isExistDetial('@item.TopicCode')"  class="zt-list-a">@item.TopicName</a>
                </li>
                    }
                }
            }


        </ul>
    </div>
</div>
